<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>dSFMT: dSFMT.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">dSFMT
   &#160;<span id="projectnumber">2.2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">dSFMT.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="d_s_f_m_t_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#pragma once</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef DSFMT_H</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define DSFMT_H</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#if defined(__cplusplus)</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00039"></a>00039 <span class="preprocessor">#endif</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="preprocessor">#if !defined(DSFMT_MEXP)</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#ifdef __GNUC__</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">  #warning &quot;DSFMT_MEXP is not defined. I assume DSFMT_MEXP is 19937.&quot;</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00048"></a><a class="code" href="d_s_f_m_t_8h.html#aeda2790c35e4e205219e3c0ef1a2dd0a">00048</a> <span class="preprocessor"></span><span class="preprocessor">  #define DSFMT_MEXP 19937</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="comment">/*-----------------</span>
<a name="l00051"></a>00051 <span class="comment">  BASIC DEFINITIONS</span>
<a name="l00052"></a>00052 <span class="comment">  -----------------*/</span>
<a name="l00053"></a>00053 <span class="comment">/* Mersenne Exponent. The period of the sequence</span>
<a name="l00054"></a>00054 <span class="comment"> *  is a multiple of 2^DSFMT_MEXP-1.</span>
<a name="l00055"></a>00055 <span class="comment"> * #define DSFMT_MEXP 19937 */</span>
<a name="l00058"></a><a class="code" href="d_s_f_m_t_8h.html#a3b6595773bfd02df5481e6a459071a1c">00058</a> <span class="preprocessor">#define DSFMT_N ((DSFMT_MEXP - 128) / 104 + 1)</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00061"></a><a class="code" href="d_s_f_m_t_8h.html#aa0bbbd372d361b7fe3ea3ec2013c9097">00061</a> <span class="preprocessor">#define DSFMT_N32 (DSFMT_N * 4)</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00064"></a><a class="code" href="d_s_f_m_t_8h.html#a36560990b64532b75e95bf5b683599dc">00064</a> <span class="preprocessor">#define DSFMT_N64 (DSFMT_N * 2)</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span>
<a name="l00066"></a>00066 <span class="preprocessor">#if !defined(DSFMT_BIG_ENDIAN)</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#  if defined(__BYTE_ORDER) &amp;&amp; defined(__BIG_ENDIAN)</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#    if __BYTE_ORDER == __BIG_ENDIAN</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#      define DSFMT_BIG_ENDIAN 1</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span><span class="preprocessor">#  elif defined(_BYTE_ORDER) &amp;&amp; defined(_BIG_ENDIAN)</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span><span class="preprocessor">#    if _BYTE_ORDER == _BIG_ENDIAN</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span><span class="preprocessor">#      define DSFMT_BIG_ENDIAN 1</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#  elif defined(__BYTE_ORDER__) &amp;&amp; defined(__BIG_ENDIAN__)</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span><span class="preprocessor">#    if __BYTE_ORDER__ == __BIG_ENDIAN__</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span><span class="preprocessor">#      define DSFMT_BIG_ENDIAN 1</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#  elif defined(BYTE_ORDER) &amp;&amp; defined(BIG_ENDIAN)</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="preprocessor">#    if BYTE_ORDER == BIG_ENDIAN</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#      define DSFMT_BIG_ENDIAN 1</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor">#  elif defined(__BIG_ENDIAN) || defined(_BIG_ENDIAN) \</span>
<a name="l00084"></a>00084 <span class="preprocessor">    || defined(__BIG_ENDIAN__) || defined(BIG_ENDIAN)</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span><span class="preprocessor">#      define DSFMT_BIG_ENDIAN 1</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span>
<a name="l00089"></a>00089 <span class="preprocessor">#if defined(DSFMT_BIG_ENDIAN) &amp;&amp; defined(__amd64)</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor">#  undef DSFMT_BIG_ENDIAN</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span>
<a name="l00093"></a>00093 <span class="preprocessor">#if defined(__STDC_VERSION__) &amp;&amp; (__STDC_VERSION__ &gt;= 199901L)</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;inttypes.h&gt;</span>
<a name="l00095"></a>00095 <span class="preprocessor">#elif defined(_MSC_VER) || defined(__BORLANDC__)</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor">#  if !defined(DSFMT_UINT32_DEFINED) &amp;&amp; !defined(SFMT_UINT32_DEFINED)</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint32_t;
<a name="l00098"></a>00098 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> __int64 uint64_t;
<a name="l00099"></a>00099 <span class="preprocessor">#    define UINT64_C(v) (v ## ui64)</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor">#    define DSFMT_UINT32_DEFINED</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#    if !defined(inline)</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#      define inline __inline</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;inttypes.h&gt;</span>
<a name="l00107"></a>00107 <span class="preprocessor">#  if !defined(inline)</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor">#    if defined(__GNUC__)</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor">#      define inline __inline__</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#    else</span>
<a name="l00111"></a><a class="code" href="d_s_f_m_t_8h.html#a00d24c7231be28dbaf71f5408f30e44c">00111</a> <span class="preprocessor"></span><span class="preprocessor">#      define inline</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span>
<a name="l00116"></a>00116 <span class="preprocessor">#ifndef PRIu64</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#  if defined(_MSC_VER) || defined(__BORLANDC__)</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span><span class="preprocessor">#    define PRIu64 &quot;I64u&quot;</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#    define PRIx64 &quot;I64x&quot;</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l00121"></a><a class="code" href="d_s_f_m_t_8h.html#ac582131d7a7c8ee57e73180d1714f9d5">00121</a> <span class="preprocessor"></span><span class="preprocessor">#    define PRIu64 &quot;llu&quot;</span>
<a name="l00122"></a><a class="code" href="d_s_f_m_t_8h.html#aba38357387a474f439428dee1984fc5a">00122</a> <span class="preprocessor"></span><span class="preprocessor">#    define PRIx64 &quot;llx&quot;</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span>
<a name="l00126"></a>00126 <span class="preprocessor">#ifndef UINT64_C</span>
<a name="l00127"></a><a class="code" href="d_s_f_m_t_8h.html#a014ce50c36f4de34281551e4da3d5195">00127</a> <span class="preprocessor"></span><span class="preprocessor">#  define UINT64_C(v) (v ## ULL)</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span>
<a name="l00130"></a>00130 <span class="comment">/*------------------------------------------</span>
<a name="l00131"></a>00131 <span class="comment">  128-bit SIMD like data type for standard C</span>
<a name="l00132"></a>00132 <span class="comment">  ------------------------------------------*/</span>
<a name="l00133"></a>00133 <span class="preprocessor">#if defined(HAVE_ALTIVEC)</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#  if !defined(__APPLE__)</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#    include &lt;altivec.h&gt;</span>
<a name="l00136"></a>00136 <span class="preprocessor">#  endif</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span>
<a name="l00138"></a>00138 <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> {
<a name="l00139"></a>00139     vector <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> s;
<a name="l00140"></a>00140     uint64_t <a class="code" href="union_w128___t.html#a5f9319b0fdb9a62cc93fb5aade53e641">u</a>[2];
<a name="l00141"></a>00141     uint32_t <a class="code" href="union_w128___t.html#a0fe5abc7066ccd41c10cbc6ad9d44195">u32</a>[4];
<a name="l00142"></a>00142     <span class="keywordtype">double</span> <a class="code" href="union_w128___t.html#af1781b30d4052a0832fb7e7cd992cb75">d</a>[2];
<a name="l00143"></a>00143 };
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 <span class="preprocessor">#elif defined(HAVE_SSE2)</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span><span class="preprocessor">#  include &lt;emmintrin.h&gt;</span>
<a name="l00147"></a>00147 
<a name="l00149"></a>00149 <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> {
<a name="l00150"></a>00150     __m128i si;
<a name="l00151"></a>00151     __m128d sd;
<a name="l00152"></a>00152     uint64_t <a class="code" href="union_w128___t.html#a5f9319b0fdb9a62cc93fb5aade53e641">u</a>[2];
<a name="l00153"></a>00153     uint32_t <a class="code" href="union_w128___t.html#a0fe5abc7066ccd41c10cbc6ad9d44195">u32</a>[4];
<a name="l00154"></a>00154     <span class="keywordtype">double</span> <a class="code" href="union_w128___t.html#af1781b30d4052a0832fb7e7cd992cb75">d</a>[2];
<a name="l00155"></a>00155 };
<a name="l00156"></a>00156 <span class="preprocessor">#else  </span><span class="comment">/* standard C */</span>
<a name="l00157"></a>00157 
<a name="l00158"></a><a class="code" href="union_w128___t.html">00158</a> <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> {
<a name="l00159"></a><a class="code" href="union_w128___t.html#a5f9319b0fdb9a62cc93fb5aade53e641">00159</a>     uint64_t <a class="code" href="union_w128___t.html#a5f9319b0fdb9a62cc93fb5aade53e641">u</a>[2];
<a name="l00160"></a><a class="code" href="union_w128___t.html#a0fe5abc7066ccd41c10cbc6ad9d44195">00160</a>     uint32_t <a class="code" href="union_w128___t.html#a0fe5abc7066ccd41c10cbc6ad9d44195">u32</a>[4];
<a name="l00161"></a><a class="code" href="union_w128___t.html#af1781b30d4052a0832fb7e7cd992cb75">00161</a>     <span class="keywordtype">double</span> <a class="code" href="union_w128___t.html#af1781b30d4052a0832fb7e7cd992cb75">d</a>[2];
<a name="l00162"></a>00162 };
<a name="l00163"></a>00163 <span class="preprocessor">#endif</span>
<a name="l00164"></a>00164 <span class="preprocessor"></span>
<a name="l00166"></a><a class="code" href="d_s_f_m_t_8h.html#ab1ee414cba9ca0f33a3716e7a92c2b79">00166</a> <span class="keyword">typedef</span> <span class="keyword">union </span><a class="code" href="union_w128___t.html" title="128-bit data structure">W128_T</a> <a class="code" href="union_w128___t.html" title="128-bit data structure">w128_t</a>;
<a name="l00167"></a>00167 
<a name="l00169"></a><a class="code" href="struct_d_s_f_m_t___t.html">00169</a> <span class="keyword">struct </span><a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">DSFMT_T</a> {
<a name="l00170"></a><a class="code" href="struct_d_s_f_m_t___t.html#aa7b5e6f3e8e109b75493514525854931">00170</a>     <a class="code" href="union_w128___t.html" title="128-bit data structure">w128_t</a> <a class="code" href="struct_d_s_f_m_t___t.html#aa7b5e6f3e8e109b75493514525854931">status</a>[<a class="code" href="d_s_f_m_t_8h.html#a3b6595773bfd02df5481e6a459071a1c" title="DSFMT generator has an internal state array of 128-bit integers, and N is its size.">DSFMT_N</a> + 1];
<a name="l00171"></a><a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">00171</a>     <span class="keywordtype">int</span> <a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">idx</a>;
<a name="l00172"></a>00172 };
<a name="l00173"></a><a class="code" href="d_s_f_m_t_8h.html#a7e8239b4bedf4e53d5168d21848ab7af">00173</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">DSFMT_T</a> <a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a>;
<a name="l00174"></a>00174 
<a name="l00176"></a>00176 <span class="keyword">extern</span> <a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> <a class="code" href="d_s_f_m_t_8h.html#adfee3c4c3505ddcfc334251f94968737" title="dsfmt internal state vector">dsfmt_global_data</a>;
<a name="l00178"></a>00178 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#ab5bb9876d117b3cdf8143c701a3f8cdf" title="dsfmt mexp for check">dsfmt_global_mexp</a>;
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#afccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point pseudorandom number...">dsfmt_gen_rand_all</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt);
<a name="l00181"></a>00181 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a6ad6f12b9a47ea89ceab693b1eec5079" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_open_close</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
<a name="l00182"></a>00182 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a243fb9ed1b61233f3dba4ab15c541eb0" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_close_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
<a name="l00183"></a>00183 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#aeed310e17f9f652c1b0ec86298c834c1" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_open_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
<a name="l00184"></a>00184 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#abeef257039f3b95b7475bbecdb521b89" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_close1_open2</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, <span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size);
<a name="l00185"></a>00185 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a2fa6a84095a280a4e1556415f3d4f259" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_chk_init_gen_rand</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t seed, <span class="keywordtype">int</span> mexp);
<a name="l00186"></a>00186 <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a91cef405a85910d4e56b4a1d10fb89f1" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_chk_init_by_array</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t init_key[],
<a name="l00187"></a>00187                              <span class="keywordtype">int</span> key_length, <span class="keywordtype">int</span> mexp);
<a name="l00188"></a>00188 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="d_s_f_m_t_8h.html#af181eeb77513e5a399dd2c585cfaa055" title="This function returns the identification string.">dsfmt_get_idstring</a>(<span class="keywordtype">void</span>);
<a name="l00189"></a>00189 <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#af49cc1703b4cc1d0bffbd895917c303a" title="This function returns the minimum size of array used for fill_array functions.">dsfmt_get_min_array_size</a>(<span class="keywordtype">void</span>);
<a name="l00190"></a>00190 
<a name="l00191"></a>00191 <span class="preprocessor">#if defined(__GNUC__)</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span><span class="preprocessor">#  define DSFMT_PRE_INLINE inline static</span>
<a name="l00193"></a>00193 <span class="preprocessor"></span><span class="preprocessor">#  define DSFMT_PST_INLINE __attribute__((always_inline))</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span><span class="preprocessor">#elif defined(_MSC_VER) &amp;&amp; _MSC_VER &gt;= 1200</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span><span class="preprocessor">#  define DSFMT_PRE_INLINE __forceinline static</span>
<a name="l00196"></a>00196 <span class="preprocessor"></span><span class="preprocessor">#  define DSFMT_PST_INLINE</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00198"></a><a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">00198</a> <span class="preprocessor"></span><span class="preprocessor">#  define DSFMT_PRE_INLINE inline static</span>
<a name="l00199"></a><a class="code" href="d_s_f_m_t_8h.html#a5842d43aa58fb6f026a8fdc02cb15455">00199</a> <span class="preprocessor"></span><span class="preprocessor">#  define DSFMT_PST_INLINE</span>
<a name="l00200"></a>00200 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00201"></a>00201 <span class="preprocessor"></span><a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> uint32_t <a class="code" href="d_s_f_m_t_8h.html#a49fc44ce077ee57594b8102eb04145d9" title="This function generates and returns unsigned 32-bit integer.">dsfmt_genrand_uint32</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) <a class="code" href="d_s_f_m_t_8h.html#a5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
<a name="l00202"></a>00202 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ae9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_close1_open2</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
<a name="l00203"></a>00203     <a class="code" href="d_s_f_m_t_8h.html#a5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
<a name="l00204"></a>00204 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a989a29c7d5616755721ee41f0d1c3982" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_close_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
<a name="l00205"></a>00205     <a class="code" href="d_s_f_m_t_8h.html#a5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
<a name="l00206"></a>00206 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ac8916cdece1e0ed671077ba869aae509" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_open_close</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
<a name="l00207"></a>00207     <a class="code" href="d_s_f_m_t_8h.html#a5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
<a name="l00208"></a>00208 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a147a0a05c969a4cb5d92ce3963b839c2" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_open_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt)
<a name="l00209"></a>00209     <a class="code" href="d_s_f_m_t_8h.html#a5842d43aa58fb6f026a8fdc02cb15455">DSFMT_PST_INLINE</a>;
<a name="l00210"></a>00210 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> uint32_t <a class="code" href="d_s_f_m_t_8h.html#ade87b39b59a4f8c2e09c5ad25a53b515" title="This function generates and returns unsigned 32-bit integer.">dsfmt_gv_genrand_uint32</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00211"></a>00211 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#af298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close1_open2</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00212"></a>00212 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ae57b11ef3fdcf04e84fc0298166aab82" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00213"></a>00213 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#afcdb7f3f26ca2d4a8f4e3854209fd4dd" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_open_close</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00214"></a>00214 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#af6dbcef408462da1f40edd1a1ea5dcd3" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_open_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00215"></a>00215 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a92deacd8f90f332a130ab5a6fdae8348" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00216"></a>00216     DSFMT_PST_INLINE;
<a name="l00217"></a>00217 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a27e4b624752149e0450056a317d09214" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00218"></a>00218     DSFMT_PST_INLINE;
<a name="l00219"></a>00219 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a871323d18c3525787f63fcf071c4787d" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00220"></a>00220     DSFMT_PST_INLINE;
<a name="l00221"></a>00221 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#ae0ed5a2ba6eb6f21fa591a54020af3ac" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00222"></a>00222     DSFMT_PST_INLINE;
<a name="l00223"></a>00223 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a74e3849c0ae0929d57c9c9ac52d58cc8" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_gv_init_gen_rand</a>(uint32_t seed) DSFMT_PST_INLINE;
<a name="l00224"></a>00224 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a4f989ee92f5e4c8f71570dbb9d19e838" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_gv_init_by_array</a>(uint32_t init_key[],
<a name="l00225"></a>00225                                              <span class="keywordtype">int</span> key_length) DSFMT_PST_INLINE;
<a name="l00226"></a>00226 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a8df497c74e469b5f42e8a22d93124d41" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_init_gen_rand</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t seed)
<a name="l00227"></a>00227     DSFMT_PST_INLINE;
<a name="l00228"></a>00228 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a0914ba62e9a46b6a1f04f27caa83ba87" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_init_by_array</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t init_key[],
<a name="l00229"></a>00229                                           <span class="keywordtype">int</span> key_length) DSFMT_PST_INLINE;
<a name="l00230"></a>00230 
<a name="l00239"></a><a class="code" href="d_s_f_m_t_8h.html#a49fc44ce077ee57594b8102eb04145d9">00239</a> <a class="code" href="d_s_f_m_t_8h.html#a00d24c7231be28dbaf71f5408f30e44c">inline</a> static uint32_t <a class="code" href="d_s_f_m_t_8h.html#a49fc44ce077ee57594b8102eb04145d9" title="This function generates and returns unsigned 32-bit integer.">dsfmt_genrand_uint32</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
<a name="l00240"></a>00240     uint32_t r;
<a name="l00241"></a>00241     uint64_t *psfmt64 = &amp;dsfmt-&gt;status[0].u[0];
<a name="l00242"></a>00242 
<a name="l00243"></a>00243     <span class="keywordflow">if</span> (dsfmt-&gt;idx &gt;= <a class="code" href="d_s_f_m_t_8h.html#a36560990b64532b75e95bf5b683599dc" title="N64 is the size of internal state array when regarded as an array of 64-bit integers.">DSFMT_N64</a>) {
<a name="l00244"></a>00244         <a class="code" href="d_s_f_m_t_8h.html#afccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point pseudorandom number...">dsfmt_gen_rand_all</a>(dsfmt);
<a name="l00245"></a>00245         dsfmt-&gt;idx = 0;
<a name="l00246"></a>00246     }
<a name="l00247"></a>00247     r = psfmt64[dsfmt-&gt;idx++] &amp; 0xffffffffU;
<a name="l00248"></a>00248     <span class="keywordflow">return</span> r;
<a name="l00249"></a>00249 }
<a name="l00250"></a>00250 
<a name="l00260"></a><a class="code" href="d_s_f_m_t_8h.html#ae9bb29b63c46e57725dffa776cf930e7">00260</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ae9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_close1_open2</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
<a name="l00261"></a>00261     <span class="keywordtype">double</span> r;
<a name="l00262"></a>00262     <span class="keywordtype">double</span> *psfmt64 = &amp;dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#aa7b5e6f3e8e109b75493514525854931">status</a>[0].<a class="code" href="union_w128___t.html#af1781b30d4052a0832fb7e7cd992cb75">d</a>[0];
<a name="l00263"></a>00263 
<a name="l00264"></a>00264     <span class="keywordflow">if</span> (dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">idx</a> &gt;= <a class="code" href="d_s_f_m_t_8h.html#a36560990b64532b75e95bf5b683599dc" title="N64 is the size of internal state array when regarded as an array of 64-bit integers.">DSFMT_N64</a>) {
<a name="l00265"></a>00265         <a class="code" href="d_s_f_m_t_8h.html#afccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point pseudorandom number...">dsfmt_gen_rand_all</a>(dsfmt);
<a name="l00266"></a>00266         dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">idx</a> = 0;
<a name="l00267"></a>00267     }
<a name="l00268"></a>00268     r = psfmt64[dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">idx</a>++];
<a name="l00269"></a>00269     <span class="keywordflow">return</span> r;
<a name="l00270"></a>00270 }
<a name="l00271"></a>00271 
<a name="l00279"></a><a class="code" href="d_s_f_m_t_8h.html#ade87b39b59a4f8c2e09c5ad25a53b515">00279</a> <span class="keyword">inline</span> <span class="keyword">static</span> uint32_t <a class="code" href="d_s_f_m_t_8h.html#ade87b39b59a4f8c2e09c5ad25a53b515" title="This function generates and returns unsigned 32-bit integer.">dsfmt_gv_genrand_uint32</a>(<span class="keywordtype">void</span>) {
<a name="l00280"></a>00280     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#a49fc44ce077ee57594b8102eb04145d9" title="This function generates and returns unsigned 32-bit integer.">dsfmt_genrand_uint32</a>(&amp;dsfmt_global_data);
<a name="l00281"></a>00281 }
<a name="l00282"></a>00282 
<a name="l00290"></a><a class="code" href="d_s_f_m_t_8h.html#af298572e9f2449e59ddf486977006621">00290</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#af298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close1_open2</a>(<span class="keywordtype">void</span>) {
<a name="l00291"></a>00291     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#ae9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_close1_open2</a>(&amp;dsfmt_global_data);
<a name="l00292"></a>00292 }
<a name="l00293"></a>00293 
<a name="l00302"></a><a class="code" href="d_s_f_m_t_8h.html#a989a29c7d5616755721ee41f0d1c3982">00302</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a989a29c7d5616755721ee41f0d1c3982" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_close_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
<a name="l00303"></a>00303     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#ae9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_close1_open2</a>(dsfmt) - 1.0;
<a name="l00304"></a>00304 }
<a name="l00305"></a>00305 
<a name="l00313"></a><a class="code" href="d_s_f_m_t_8h.html#ae57b11ef3fdcf04e84fc0298166aab82">00313</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ae57b11ef3fdcf04e84fc0298166aab82" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close_open</a>(<span class="keywordtype">void</span>) {
<a name="l00314"></a>00314     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#af298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close1_open2</a>() - 1.0;
<a name="l00315"></a>00315 }
<a name="l00316"></a>00316 
<a name="l00325"></a><a class="code" href="d_s_f_m_t_8h.html#ac8916cdece1e0ed671077ba869aae509">00325</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ac8916cdece1e0ed671077ba869aae509" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_open_close</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
<a name="l00326"></a>00326     <span class="keywordflow">return</span> 2.0 - <a class="code" href="d_s_f_m_t_8h.html#ae9bb29b63c46e57725dffa776cf930e7" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_close1_open2</a>(dsfmt);
<a name="l00327"></a>00327 }
<a name="l00328"></a>00328 
<a name="l00336"></a><a class="code" href="d_s_f_m_t_8h.html#afcdb7f3f26ca2d4a8f4e3854209fd4dd">00336</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#afcdb7f3f26ca2d4a8f4e3854209fd4dd" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_open_close</a>(<span class="keywordtype">void</span>) {
<a name="l00337"></a>00337     <span class="keywordflow">return</span> 2.0 - <a class="code" href="d_s_f_m_t_8h.html#af298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close1_open2</a>();
<a name="l00338"></a>00338 }
<a name="l00339"></a>00339 
<a name="l00348"></a><a class="code" href="d_s_f_m_t_8h.html#a147a0a05c969a4cb5d92ce3963b839c2">00348</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a147a0a05c969a4cb5d92ce3963b839c2" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_open_open</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt) {
<a name="l00349"></a>00349     <span class="keywordtype">double</span> *dsfmt64 = &amp;dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#aa7b5e6f3e8e109b75493514525854931">status</a>[0].<a class="code" href="union_w128___t.html#af1781b30d4052a0832fb7e7cd992cb75">d</a>[0];
<a name="l00350"></a>00350     <span class="keyword">union </span>{
<a name="l00351"></a>00351         <span class="keywordtype">double</span> d;
<a name="l00352"></a>00352         uint64_t u;
<a name="l00353"></a>00353     } r;
<a name="l00354"></a>00354 
<a name="l00355"></a>00355     <span class="keywordflow">if</span> (dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">idx</a> &gt;= <a class="code" href="d_s_f_m_t_8h.html#a36560990b64532b75e95bf5b683599dc" title="N64 is the size of internal state array when regarded as an array of 64-bit integers.">DSFMT_N64</a>) {
<a name="l00356"></a>00356         <a class="code" href="d_s_f_m_t_8h.html#afccb1e4d75cea7ffe3b45cba53d1e5e0" title="This function fills the internal state array with double precision floating point pseudorandom number...">dsfmt_gen_rand_all</a>(dsfmt);
<a name="l00357"></a>00357         dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">idx</a> = 0;
<a name="l00358"></a>00358     }
<a name="l00359"></a>00359     r.d = dsfmt64[dsfmt-&gt;<a class="code" href="struct_d_s_f_m_t___t.html#a776de3ff937f19d246e7edce2676981a">idx</a>++];
<a name="l00360"></a>00360     r.u |= 1;
<a name="l00361"></a>00361     <span class="keywordflow">return</span> r.d - 1.0;
<a name="l00362"></a>00362 }
<a name="l00363"></a>00363 
<a name="l00371"></a><a class="code" href="d_s_f_m_t_8h.html#af6dbcef408462da1f40edd1a1ea5dcd3">00371</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#af6dbcef408462da1f40edd1a1ea5dcd3" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_open_open</a>(<span class="keywordtype">void</span>) {
<a name="l00372"></a>00372     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#a147a0a05c969a4cb5d92ce3963b839c2" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_genrand_open_open</a>(&amp;dsfmt_global_data);
<a name="l00373"></a>00373 }
<a name="l00374"></a>00374 
<a name="l00386"></a><a class="code" href="d_s_f_m_t_8h.html#ae0ed5a2ba6eb6f21fa591a54020af3ac">00386</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#ae0ed5a2ba6eb6f21fa591a54020af3ac" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00387"></a>00387     <a class="code" href="d_s_f_m_t_8h.html#abeef257039f3b95b7475bbecdb521b89" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_close1_open2</a>(&amp;dsfmt_global_data, array, size);
<a name="l00388"></a>00388 }
<a name="l00389"></a>00389 
<a name="l00402"></a><a class="code" href="d_s_f_m_t_8h.html#a92deacd8f90f332a130ab5a6fdae8348">00402</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a92deacd8f90f332a130ab5a6fdae8348" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00403"></a>00403     <a class="code" href="d_s_f_m_t_8h.html#a6ad6f12b9a47ea89ceab693b1eec5079" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_open_close</a>(&amp;dsfmt_global_data, array, size);
<a name="l00404"></a>00404 }
<a name="l00405"></a>00405 
<a name="l00418"></a><a class="code" href="d_s_f_m_t_8h.html#a27e4b624752149e0450056a317d09214">00418</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a27e4b624752149e0450056a317d09214" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00419"></a>00419     <a class="code" href="d_s_f_m_t_8h.html#a243fb9ed1b61233f3dba4ab15c541eb0" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_close_open</a>(&amp;dsfmt_global_data, array, size);
<a name="l00420"></a>00420 }
<a name="l00421"></a>00421 
<a name="l00434"></a><a class="code" href="d_s_f_m_t_8h.html#a871323d18c3525787f63fcf071c4787d">00434</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a871323d18c3525787f63fcf071c4787d" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00435"></a>00435     <a class="code" href="d_s_f_m_t_8h.html#aeed310e17f9f652c1b0ec86298c834c1" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_fill_array_open_open</a>(&amp;dsfmt_global_data, array, size);
<a name="l00436"></a>00436 }
<a name="l00437"></a>00437 
<a name="l00444"></a><a class="code" href="d_s_f_m_t_8h.html#a8df497c74e469b5f42e8a22d93124d41">00444</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a8df497c74e469b5f42e8a22d93124d41" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_init_gen_rand</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t seed) {
<a name="l00445"></a>00445     <a class="code" href="d_s_f_m_t_8h.html#a2fa6a84095a280a4e1556415f3d4f259" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_chk_init_gen_rand</a>(dsfmt, seed, <a class="code" href="d_s_f_m_t_8h.html#aeda2790c35e4e205219e3c0ef1a2dd0a">DSFMT_MEXP</a>);
<a name="l00446"></a>00446 }
<a name="l00447"></a>00447 
<a name="l00454"></a><a class="code" href="d_s_f_m_t_8h.html#a74e3849c0ae0929d57c9c9ac52d58cc8">00454</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a74e3849c0ae0929d57c9c9ac52d58cc8" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_gv_init_gen_rand</a>(uint32_t seed) {
<a name="l00455"></a>00455     <a class="code" href="d_s_f_m_t_8h.html#a8df497c74e469b5f42e8a22d93124d41" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_init_gen_rand</a>(&amp;dsfmt_global_data, seed);
<a name="l00456"></a>00456 }
<a name="l00457"></a>00457 
<a name="l00465"></a><a class="code" href="d_s_f_m_t_8h.html#a0914ba62e9a46b6a1f04f27caa83ba87">00465</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a0914ba62e9a46b6a1f04f27caa83ba87" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_init_by_array</a>(<a class="code" href="struct_d_s_f_m_t___t.html" title="the 128-bit internal state array">dsfmt_t</a> *dsfmt, uint32_t init_key[],
<a name="l00466"></a>00466                                        <span class="keywordtype">int</span> key_length) {
<a name="l00467"></a>00467     <a class="code" href="d_s_f_m_t_8h.html#a91cef405a85910d4e56b4a1d10fb89f1" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_chk_init_by_array</a>(dsfmt, init_key, key_length, <a class="code" href="d_s_f_m_t_8h.html#aeda2790c35e4e205219e3c0ef1a2dd0a">DSFMT_MEXP</a>);
<a name="l00468"></a>00468 }
<a name="l00469"></a>00469 
<a name="l00478"></a><a class="code" href="d_s_f_m_t_8h.html#a4f989ee92f5e4c8f71570dbb9d19e838">00478</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a4f989ee92f5e4c8f71570dbb9d19e838" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_gv_init_by_array</a>(uint32_t init_key[], <span class="keywordtype">int</span> key_length) {
<a name="l00479"></a>00479     <a class="code" href="d_s_f_m_t_8h.html#a0914ba62e9a46b6a1f04f27caa83ba87" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_init_by_array</a>(&amp;dsfmt_global_data, init_key, key_length);
<a name="l00480"></a>00480 }
<a name="l00481"></a>00481 
<a name="l00482"></a>00482 <span class="preprocessor">#if !defined(DSFMT_DO_NOT_USE_OLD_NAMES)</span>
<a name="l00483"></a>00483 <span class="preprocessor"></span><a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="d_s_f_m_t_8h.html#a2792d3dd76b6ae051d60830b676622ba" title="This function is just the same as dsfmt_get_idstring().">get_idstring</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00484"></a>00484 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#a75ebedeed1c3d5e8576c53e5ce215fea" title="This function is just the same as dsfmt_get_min_array_size().">get_min_array_size</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00485"></a>00485 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a985425dba38a16554d3f2a9ee3a41e1b" title="This function is just the same as dsfmt_gv_init_gen_rand().">init_gen_rand</a>(uint32_t seed) DSFMT_PST_INLINE;
<a name="l00486"></a>00486 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a5f12cfe61e34b29a9c4f88f097712205" title="This function is just the same as dsfmt_gv_init_by_array().">init_by_array</a>(uint32_t init_key[], <span class="keywordtype">int</span> key_length)
<a name="l00487"></a>00487     DSFMT_PST_INLINE;
<a name="l00488"></a>00488 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a01bce92db767a0f976b56f88f8f89515" title="This function is just the same as dsfmt_gv_genrand_close1_open2().">genrand_close1_open2</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00489"></a>00489 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a188b24295a56aa56f823c7dfb0615971" title="This function is just the same as dsfmt_gv_genrand_close_open().">genrand_close_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00490"></a>00490 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ab24d54ba54b0249c02200a7f3232b342" title="This function is just the same as dsfmt_gv_genrand_open_close().">genrand_open_close</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00491"></a>00491 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a902ef40cb5e9e3caad2cfb478224c071" title="This function is just the same as dsfmt_gv_genrand_open_open().">genrand_open_open</a>(<span class="keywordtype">void</span>) DSFMT_PST_INLINE;
<a name="l00492"></a>00492 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a4d6c1e2049214ae128c1f9226ad683b9" title="This function is juset the same as dsfmt_gv_fill_array_open_close().">fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00493"></a>00493     DSFMT_PST_INLINE;
<a name="l00494"></a>00494 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a5a6dd5166f4dcc137bce8f1aeea758a5" title="This function is juset the same as dsfmt_gv_fill_array_close_open().">fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00495"></a>00495     DSFMT_PST_INLINE;
<a name="l00496"></a>00496 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#adeaef304a7f9f262588bdbcf780feb42" title="This function is juset the same as dsfmt_gv_fill_array_open_open().">fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00497"></a>00497     DSFMT_PST_INLINE;
<a name="l00498"></a>00498 <a class="code" href="d_s_f_m_t_8h.html#a7490eb8287e4754e4e30153135f496e9">DSFMT_PRE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a98e1c0307c01044eb8d1c5136b59af9d" title="This function is juset the same as dsfmt_gv_fill_array_close1_open2().">fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size)
<a name="l00499"></a>00499     DSFMT_PST_INLINE;
<a name="l00500"></a>00500 
<a name="l00506"></a><a class="code" href="d_s_f_m_t_8h.html#a2792d3dd76b6ae051d60830b676622ba">00506</a> <a class="code" href="d_s_f_m_t_8h.html#a00d24c7231be28dbaf71f5408f30e44c">inline</a> static const <span class="keywordtype">char</span> *<a class="code" href="d_s_f_m_t_8h.html#a2792d3dd76b6ae051d60830b676622ba" title="This function is just the same as dsfmt_get_idstring().">get_idstring</a>(<span class="keywordtype">void</span>) {
<a name="l00507"></a>00507     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#af181eeb77513e5a399dd2c585cfaa055" title="This function returns the identification string.">dsfmt_get_idstring</a>();
<a name="l00508"></a>00508 }
<a name="l00509"></a>00509 
<a name="l00515"></a><a class="code" href="d_s_f_m_t_8h.html#a75ebedeed1c3d5e8576c53e5ce215fea">00515</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="d_s_f_m_t_8h.html#a75ebedeed1c3d5e8576c53e5ce215fea" title="This function is just the same as dsfmt_get_min_array_size().">get_min_array_size</a>(<span class="keywordtype">void</span>) {
<a name="l00516"></a>00516     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#af49cc1703b4cc1d0bffbd895917c303a" title="This function returns the minimum size of array used for fill_array functions.">dsfmt_get_min_array_size</a>();
<a name="l00517"></a>00517 }
<a name="l00518"></a>00518 
<a name="l00524"></a><a class="code" href="d_s_f_m_t_8h.html#a985425dba38a16554d3f2a9ee3a41e1b">00524</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a985425dba38a16554d3f2a9ee3a41e1b" title="This function is just the same as dsfmt_gv_init_gen_rand().">init_gen_rand</a>(uint32_t seed) {
<a name="l00525"></a>00525     <a class="code" href="d_s_f_m_t_8h.html#a74e3849c0ae0929d57c9c9ac52d58cc8" title="This function initializes the internal state array with a 32-bit integer seed.">dsfmt_gv_init_gen_rand</a>(seed);
<a name="l00526"></a>00526 }
<a name="l00527"></a>00527 
<a name="l00534"></a><a class="code" href="d_s_f_m_t_8h.html#a5f12cfe61e34b29a9c4f88f097712205">00534</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a5f12cfe61e34b29a9c4f88f097712205" title="This function is just the same as dsfmt_gv_init_by_array().">init_by_array</a>(uint32_t init_key[], <span class="keywordtype">int</span> key_length) {
<a name="l00535"></a>00535     <a class="code" href="d_s_f_m_t_8h.html#a4f989ee92f5e4c8f71570dbb9d19e838" title="This function initializes the internal state array, with an array of 32-bit integers used as the seed...">dsfmt_gv_init_by_array</a>(init_key, key_length);
<a name="l00536"></a>00536 }
<a name="l00537"></a>00537 
<a name="l00544"></a><a class="code" href="d_s_f_m_t_8h.html#a01bce92db767a0f976b56f88f8f89515">00544</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a01bce92db767a0f976b56f88f8f89515" title="This function is just the same as dsfmt_gv_genrand_close1_open2().">genrand_close1_open2</a>(<span class="keywordtype">void</span>) {
<a name="l00545"></a>00545     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#af298572e9f2449e59ddf486977006621" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close1_open2</a>();
<a name="l00546"></a>00546 }
<a name="l00547"></a>00547 
<a name="l00554"></a><a class="code" href="d_s_f_m_t_8h.html#a188b24295a56aa56f823c7dfb0615971">00554</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a188b24295a56aa56f823c7dfb0615971" title="This function is just the same as dsfmt_gv_genrand_close_open().">genrand_close_open</a>(<span class="keywordtype">void</span>) {
<a name="l00555"></a>00555     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#ae57b11ef3fdcf04e84fc0298166aab82" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_close_open</a>();
<a name="l00556"></a>00556 }
<a name="l00557"></a>00557 
<a name="l00564"></a><a class="code" href="d_s_f_m_t_8h.html#ab24d54ba54b0249c02200a7f3232b342">00564</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#ab24d54ba54b0249c02200a7f3232b342" title="This function is just the same as dsfmt_gv_genrand_open_close().">genrand_open_close</a>(<span class="keywordtype">void</span>) {
<a name="l00565"></a>00565     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#afcdb7f3f26ca2d4a8f4e3854209fd4dd" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_open_close</a>();
<a name="l00566"></a>00566 }
<a name="l00567"></a>00567 
<a name="l00574"></a><a class="code" href="d_s_f_m_t_8h.html#a902ef40cb5e9e3caad2cfb478224c071">00574</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="d_s_f_m_t_8h.html#a902ef40cb5e9e3caad2cfb478224c071" title="This function is just the same as dsfmt_gv_genrand_open_open().">genrand_open_open</a>(<span class="keywordtype">void</span>) {
<a name="l00575"></a>00575     <span class="keywordflow">return</span> <a class="code" href="d_s_f_m_t_8h.html#af6dbcef408462da1f40edd1a1ea5dcd3" title="This function generates and returns double precision pseudorandom number which distributes uniformly ...">dsfmt_gv_genrand_open_open</a>();
<a name="l00576"></a>00576 }
<a name="l00577"></a>00577 
<a name="l00587"></a><a class="code" href="d_s_f_m_t_8h.html#a4d6c1e2049214ae128c1f9226ad683b9">00587</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a4d6c1e2049214ae128c1f9226ad683b9" title="This function is juset the same as dsfmt_gv_fill_array_open_close().">fill_array_open_close</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00588"></a>00588     <a class="code" href="d_s_f_m_t_8h.html#a92deacd8f90f332a130ab5a6fdae8348" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_open_close</a>(array, size);
<a name="l00589"></a>00589 }
<a name="l00590"></a>00590 
<a name="l00600"></a><a class="code" href="d_s_f_m_t_8h.html#a5a6dd5166f4dcc137bce8f1aeea758a5">00600</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a5a6dd5166f4dcc137bce8f1aeea758a5" title="This function is juset the same as dsfmt_gv_fill_array_close_open().">fill_array_close_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00601"></a>00601     <a class="code" href="d_s_f_m_t_8h.html#a27e4b624752149e0450056a317d09214" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_close_open</a>(array, size);
<a name="l00602"></a>00602 }
<a name="l00603"></a>00603 
<a name="l00613"></a><a class="code" href="d_s_f_m_t_8h.html#adeaef304a7f9f262588bdbcf780feb42">00613</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#adeaef304a7f9f262588bdbcf780feb42" title="This function is juset the same as dsfmt_gv_fill_array_open_open().">fill_array_open_open</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00614"></a>00614     <a class="code" href="d_s_f_m_t_8h.html#a871323d18c3525787f63fcf071c4787d" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_open_open</a>(array, size);
<a name="l00615"></a>00615 }
<a name="l00616"></a>00616 
<a name="l00625"></a><a class="code" href="d_s_f_m_t_8h.html#a98e1c0307c01044eb8d1c5136b59af9d">00625</a> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="d_s_f_m_t_8h.html#a98e1c0307c01044eb8d1c5136b59af9d" title="This function is juset the same as dsfmt_gv_fill_array_close1_open2().">fill_array_close1_open2</a>(<span class="keywordtype">double</span> array[], <span class="keywordtype">int</span> size) {
<a name="l00626"></a>00626     <a class="code" href="d_s_f_m_t_8h.html#ae0ed5a2ba6eb6f21fa591a54020af3ac" title="This function generates double precision floating point pseudorandom numbers which distribute in the ...">dsfmt_gv_fill_array_close1_open2</a>(array, size);
<a name="l00627"></a>00627 }
<a name="l00628"></a>00628 <span class="preprocessor">#endif </span><span class="comment">/* DSFMT_DO_NOT_USE_OLD_NAMES */</span>
<a name="l00629"></a>00629 
<a name="l00630"></a>00630 <span class="preprocessor">#if defined(__cplusplus)</span>
<a name="l00631"></a>00631 <span class="preprocessor"></span>}
<a name="l00632"></a>00632 <span class="preprocessor">#endif</span>
<a name="l00633"></a>00633 <span class="preprocessor"></span>
<a name="l00634"></a>00634 <span class="preprocessor">#endif </span><span class="comment">/* DSFMT_H */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 29 2012 16:17:32 for dSFMT by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
